<template>
	<view class="container">
		<view class="head">
			<u-icon @click="retrun_btn" name="arrow-left" color="#fff" size="30"></u-icon>
			<u-text text="扫码核销" color="#fff" size="22" align="center" margin="4vh 0px 0px 0px"></u-text>
		</view>
		<view class="search">
			<view class="btn" @click="click()">
				<image src="@/static/images/ls/二维码.png"></image>
				<image src="../../../static/images/ls/扫码 (2).png"></image>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			click() {
				// uni.scanCode({
				// 	success: function(res) {
				// 		console.log('条码类型：' + res.scanType);
				// 		console.log('条码内容：' + res.result);
				// 	}
				// });
				uni.$u.route('/pages/ls/writeOffOperation/writeOffOperation');
			},
			retrun_btn() {
				uni.$u.route('/pages/lzx/business/homePage');
			}
		}
	}
</script>

<style lang="scss">
	page {
		overflow: hidden;
	}

	.container {
		height: 100vh;
	}

	.head {
		background-color: #3183FB;
		width: 100%;
		height: 250px;
		overflow: auto;

		.u-icon {
			position: fixed;
			top: 4vh;
		}
	}

	.search {
		box-sizing: border-box;
		padding: 30rpx 25rpx;
		background-color: white;
		width: 90vw;
		height: 90vh;
		margin: 0 auto;
		transform: translateY(-25vh);
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
		border-radius: 16rpx;

		image {
			width: 30vw;
			height: 30vw;
			position: fixed;
			left: 30vw;
			top: 20vh;
		}

		.btn {
			position: fixed;
			left: 30vw;
			top: 20vh;
			width: 30vw;
			height: 30vw;
		}
	}
</style>